home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / datatypes / binarydt / misc / sasc.mk < prev    next >
Text File  |  1996-04-07  |  581b  |  21 lines

  1.  
  2. ##############################################################################
  3. #
  4. # GNUMake SAS-C pattern rules
  5. #
  6. # These rules compiles every c and assembler source and puts the output to
  7. # the OBJDIR directory
  8. #
  9.  
  10. $(filter %.ao,$(OBJS)): $(OBJDIR)/%.ao: %.asm
  11.     sc:c/sc $(SCOPTS) $(DEBUG) $(SCOPTIMIZE) ASM  $*.asm OBJNAME $(ADOBJDIR)/$*.ao
  12.     c:move $(ADOBJDIR)/$*.o $(ADOBJDIR)/$*.ao
  13.  
  14. $(filter %.o,$(OBJS)): $(OBJDIR)/%.o: %.c
  15.     sc:c/sc $(SCOPTS) $(DEBUG) $(SCOPTIMIZE) CSRC $*.c OBJNAME t:
  16.     c:move t:$*.o $(ADOBJDIR)/$*.o
  17.  
  18. protos.h: $(SRCS)
  19.     c:swtools/mkproto $(SRCS) TO protos.h
  20.  
  21.